<template>
  <div class="app-container">
    <div class="syl-group">
      <el-row :gutter="20">
        <el-col :span="12">
          <p>活动主题：新品推荐</p>
          <p>活动类型：内部跳转</p>
          <p>活动描述： Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin
            gravida dolor sit amet lacus</p>
          <p>活动发布:立即发布</p>
          <p>开始时间:2021-03-09 19:09:30</p>
          <p>结束时间:2021-03-09 19:09:38</p>
          <p>当前状态：发布中</p>
          <p>用户浏览量：1,124次</p>
          <el-button size="small" type="primary" @click="handleRelease">取消发布</el-button>
        </el-col>
        <el-col :span="12">
          <h3>操作日志</h3>
          <el-timeline :reverse="reverse">
            <el-timeline-item
              v-for="(activity, index) in activities"
              :key="index"
              :timestamp="activity.timestamp"
            >
              {{ activity.content }}
            </el-timeline-item>
          </el-timeline>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { companyInfoApply } from '@/api/system/applyList'

export default {
  name: 'Index',
  data() {
    return {
      reverse: true,
      activities: [{
        content: '活动按期开始',
        timestamp: '2018-04-15'
      }, {
        content: '通过审核',
        timestamp: '2018-04-13'
      }, {
        content: '创建成功',
        timestamp: '2018-04-11'
      }]
    }
  },
  methods: {
    /** 发布 **/
    handleRelease() {
      this.$confirm('确认取消该活动吗', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        closeOnClickModal: false,
        closeOnPressEscape: false,
        type: 'warning'
      }).then(() => {
        this.msgSuccess('成功')
      }).catch(() => {
      })
    }
  }
}
</script>

<style scoped>

</style>
